import request from "@/utils/request";

/**
 * 用户登录
 * @param {*} params
 */
export function login(data) {
  return request({
    url: "/user_login",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
/**
 * 用户注册
 * @param {*} params
 */
export function regist(data) {
  return request({
    url: "/user_register",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
/**
 * 修改用户信息
 * @param {*} params
 */
export function userUpdate(data) {
  return request({
    url: "/user_update",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
